Mark declaration of symbol _gtk_text_unknown_char_utf8 as extern
authorKristian Rietveld <kris@gtk.org>
Mon, 13 Sep 2010 14:47:14 +0000 (16:47 +0200)
committerKristian Rietveld <kris@gtk.org>
Mon, 13 Sep 2010 14:47:14 +0000 (16:47 +0200)
So that the symbol is not re-created each time the header is included.
The symbol is defined in gtktexttypes.c already.

gtk/gtktexttypes.h

index e482c06143b558c3fb99341302cbdd43228877ee..fc595a0da2aff66221492039ca1c870a0510a228 100644 (file)
@@ -62,7 +62,7 @@ extern G_GNUC_INTERNAL const GtkTextLineSegmentClass gtk_text_child_type;
 #define GTK_TEXT_UNKNOWN_CHAR 0xFFFC
 #define GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN 3
 const gchar *gtk_text_unknown_char_utf8_gtk_tests_only (void);
-const gchar _gtk_text_unknown_char_utf8[GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN+1];
+extern const gchar _gtk_text_unknown_char_utf8[GTK_TEXT_UNKNOWN_CHAR_UTF8_LEN+1];
 
 gboolean gtk_text_byte_begins_utf8_char (const gchar *byte);